#pragma once

#include "mousetool.h"

class BMPPencilTool : public MouseTool
{
private:
	/** signal that no drawing is happening */
	static const int NOT_DRAWING = -1;
	/** the index in the bitmap of which color to draw with */
	int m_useColor;
public:
	static const char * NAME;
	const char * getName();
	BMPPencilTool(void * a_context):MouseTool(a_context),m_useColor(NOT_DRAWING)
	{m_tool.setDimension(SPoint(1,1));getButton()->setToggleable(true);}
	virtual void draw(SDL_Surface * a_surface);
	/** called when the mouse is pressed */
	bool pressedTool(const int & a_mouseButton);
	/** called as the mouse is dragged */
	bool draggedTool(const int & a_mouseButton);
	/** called when the mouse is released */
	bool releasedTool(const int & a_mouseButton);
};